

real_age = 26;

# while True:
#     guess_age = input("你猜猜我多大了：")
#     if  not guess_age.isdigit():
#         print('请输入数字，不要乱来！')
#     else:
#         guess_age =int(guess_age)
#         if guess_age > real_age:
#             print('你猜大了！')
#         elif guess_age < real_age:
#             print('你猜小了！')
#         else:
#             print('恭喜你，猜对了！')
#             break

for i in range(3):
    guess_age = input("你猜猜我多大了：")
    if  not guess_age.isdigit():
        print('请输入数字，不要乱来！')
    else:
        guess_age =int(guess_age)
        if guess_age > real_age:
            print('你猜大了！')
        elif guess_age < real_age:
            print('你猜小了！')
        else:
            print('恭喜你，猜对了！')
            break
else:
    print('超过了最大猜的次数！')